import send_msg from './_service';

/*
 * 退出登录
 * @param _action_id 系统参数action_id
 * @param _session_id 系统参数session_id
 * @param spaceid 系统参数spaceid
 * @param systemid 项目的systemid
 * @param usercode 用户名编码
 */
export default function user_logout(_action_id: string, _session_id: string, spaceid: string, systemid: string, usercode: string) {
	const msg = {
		spaceid,
		systemid,	// todo seems no need this, even usecode
		usercode
	};
	return send_msg<void>('loginservice.loginout', msg, false, false);
}
